package app;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import app.htby.utils.SpringContextUtil;
import app.logger.LogTest;

/**
 * 此系统为分发系统
 * @author lfy.xys
 * @date 2018年5月28日
 *
 */
@SpringBootApplication
public class DistributionServerApplication {
	
	private static Logger logger = LoggerFactory.getLogger(DistributionServerApplication.class);
	
	public static void main(String[] args) throws Exception {
		
		ConfigurableApplicationContext context = SpringApplication.run(DistributionServerApplication.class, args);
		SpringContextUtil.setConfigurable(context);
		logger.info("系统启动。");
		LogTest.logger.info("LogTest启动");
	}

}
